import { requestClient } from '#/api/request';

// 获取门店列表

export async function getstoreList(params: {
  page: any;
  size: any;
  storeName?: any;
}) {
  return requestClient.get('/store', {
    params,
  });
}
//修改门店

export async function updatestore(data: any) {
  return requestClient.put('/store/' + data.id, data);
}

//删除门店

export async function deletestore(id: any) {
  return requestClient.delete('/store/' + id);
}

//新增门店
export async function addstore(data: any) {
  return requestClient.post('/store', data);
}
